# -*- mode: snippet -*-
# name: $rootScope.$on('$stateChangeStart', ...)
# key: aon
# group: angular
# --
$rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {
  event.preventDefault(); //prevent the transition from happening
  $0
});
